package com.class05.controller;

import com.class05.pojo.Student;
import com.class05.service.StudentService;
import com.class05.service.impl.StudentServiceImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import java.util.List;

/**
 * @ClassDescription:
 * @JdkVersion: 17
 * @Author: yxy
 * @Created: 2023/10/30 20:26
 */
@Controller
public class StudentController {
    @Autowired
    private StudentService studentService;
    public void findAll(){
        List<Student> all = studentService.findAll();
        Logger logger = LoggerFactory.getLogger(StudentController.class);
        logger.info("这是controller打印的列表数据:",all);

    }
}
